package org.ww.consumer.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;

//服务发现（vod），出错了执行熔断器
@FeignClient(value = "provider",fallback = UserFileDegradeFeignClient.class)
@Component
public interface UserClient {


    //删除阿里云视频
    @DeleteMapping("/provider/user/{id}")   //此处必须是全路径
    public Boolean removeUser(@PathVariable("id") Integer id);  //注解@PathVariable必须带参数
}
